import { sendRequest } from '@/http';

export function roles() {
  return sendRequest({
    url: `/rbac/roles`,
    method: 'get',
    needCache: true,
  });
}

export function userPermissions() {
  return sendRequest({
    url: `/rbac/userPermissions`,
    method: 'get',
    needCache: true,
  });
}

export function giveUserRoles() {
  return sendRequest({
    url: `/rbac/giveUserRoles`,
    method: 'get',
  });
}
